<?php
	require_once '../inc/functions.php';
	require_once 'data.php';
	$section='Users';
	$rs = Get($_REQUEST['id']);
	$type = GetTypeid($rs['Type_id']);
	$contacts = GetContactInfo($_REQUEST['id']);
	$address = GetShippingAdd($_REQUEST['id']);
	$baddress = GetBillingAdd($_REQUEST['id']);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Core[nerd]-Users</title>
<link href="../inc/main.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="container">

<?php include('../inc/nav.php'); ?>

<div id="users-details">
<h3>Membership</h3>
<table>
<tr>
	<th>Id</th>
	<th>First Name</th>
	<th>Last Name</th>
	<th>Created At</th>
	<th>Updated At</th>
	<th>User Type</th>
</tr>
<tr>
	<td><?=$rs['id']?></td>
	<td><?=$rs['FirstName']?></td>
	<td><?=$rs['LastName']?></td>
	<td><?=$rs['created_at']?></td>
	<td><?=$rs['updated_at']?></td>
	<td><?=$type['Type']?></td>
</tr>
</table>

<table>
<h3>Contact Information</h3>
<tr>
	<th>Email</th>
	<th>Phone Number</th>
	<th>Facebook</th>
</tr>
<tr>
	<td><?=$contacts['Email']?></td>
	<td><?=$contacts['Phone']?></td>
	<td><?=$contacts['Facebook']?></td>
</tr>
</table>

<!--table>
<h3>Shipping Address</h3>
<tr>
	<th>Street</th>
	<th>City</th>
	<th>State</th>
	<th>Zip Code</th>
</tr>
<tr>
	<td><?=$address['Street']?></td>
	<td><?=$address['City']?></td>
	<td><?=$address['State']?></td>
	<td><?=$address['ZipCode']?></td>
</tr>
</table>

<table>
<h3>Billing Address</h3>
<tr>
	<th>Street</th>
	<th>City</th>
	<th>State</th>
	<th>Zip Code</th>
</tr>
<tr>
	<td><?=$baddress['Street']?></td>
	<td><?=$baddress['City']?></td>
	<td><?=$baddress['State']?></td>
	<td><?=$baddress['ZipCode']?></td>
</tr>
</table-->
</div>

</div>
</body>

</html>
